#ifndef GAME_OBJECT
#define  GAME_OBJECT

#include "object.h"
#include "EGL/egl.h"
#include "GLES2/gl2.h"

class game_object :
	public object
{
private:
	EGLDisplay	sEGLDisplay;
	EGLContext	sEGLContext;
	EGLSurface	sEGLSurface;
	EGLNativeWindowType parent_win_;
	int view_width_;
	int view_height_;
	GLint Position;
	GLint SourceColor;
	GLint Mvp;
	GLuint uiProgram, uiFragShader, uiVertShader;

	void _initVetexBufferObject();
public:
	game_object(EGLNativeWindowType parent_win,int w,int h );
	virtual ~game_object();
	void init();
	void update();
	void update_frame();
	void release();
};

#endif